import {baseAjax} from '../baseAjax'

// 获取未跟进天数
export function getUnfollowDayAmount (id, successHandle, failHandle) {
  let _url = '/ent/customer/count/' + id
  baseAjax(_url, {}, 'get', successHandle, failHandle)
}

// 修改跟进内容
export function updateFollowUpContent (data, successHandle, failHandle) {
  baseAjax('/ent/customer/follow', data, 'put', successHandle, failHandle)
}

// 发布内容
export function saveFollowUpContent (data, successHandle, failHandle) {
  baseAjax('/ent/customer/follow/save', data, 'post', successHandle, failHandle)
}

// 获取跟进记录
export function getFollowUpRecordsList (id, successHandle, failHandle) {
  let _url = '/ent/customer/follow/list/' + id
  baseAjax(_url, {}, 'get', successHandle, failHandle)
}

// 删除跟进记录
export function deleteFollowUpRecord (id, successHandle, failHandle) {
  let _url = '/ent/customer/follow/' + id
  baseAjax(_url, {}, 'delete', successHandle, failHandle)
}
